<%
	String target = request.getParameter("target");
	String referer = request.getHeader("referer");
	String refererInputElement;
	if (referer != null){
		refererInputElement = "<input type=\"hidden\" name=\"referer\" value=\"referer\">";
	}
	else refererInputElement ="";
%>
<html>

<head>
<title>Translation Help Login</title>
<style>	
legend{
	font-size: 120%;
	font-weight:bold;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center"><img src="/LangGuide2.jpg" width="298" height="99" alt="logo"></p>
<p align="center"><strong><jsp:include page="message.jsp"/></strong></p>
<fieldset style="border: 2px solid black; width: 500px; margin: auto; text-align:left;"> 
<legend>Login</legend>
<table width="400" border="0" align="center">
  <tr>
    <td><form action="login_action.jsp" method="POST">
      <table width="100%">
        <tr>
          <td class="td01">Email Address</td>
          <td class="td02"><input style="width: 150px;" type="text" name="email" id="email"></td>
        </tr>
        <tr>
          <td class="td01">Password</td>
          <td class="td02"><input style="width: 150px;" type="password" name="password" id="password"></td>
        </tr>
        <tr>
          <td class="td01">Remember Me</td>
          <td class="td02"><input type="checkbox" value="remember" name="remember" id="remember"></td>
        </tr>
        <tr>
          <td align="center" colspan="2" class="td05"><input type="submit" value="Login" name="loginButton" id="loginButton"></td>
        </tr>
      </table>
      <div style="margin-left:120px;">
      <br />
      <a href="/user/forgot_password.jsp">Forgot Your Password?</a>
      </div>

      <%= refererInputElement %>
    </form></td>
  </tr>
</table>
</fieldset>
<p>&nbsp;</p>
<fieldset style="border: 2px solid; width: 500px; margin: auto; text-align:left;">
<legend>Create New Account</legend>
<form action="/user/registration_action.jsp" method="POST">
  <p align="center"><strong>
    <jsp:include page="message.jsp"/>  
  </strong></p>
  <table width="100%">
<tr>
<td align="right" class="td01">Name</td><td class="td02"><input style="width: 150px;" type="text" name="name" id="name"></td>
</tr>
<tr>
<td align="right" class="td01">Email Address</td><td class="td02"><input style="width: 150px;" type="text" name="email" id="email"></td>
</tr>
<tr>
  <td align="right" class="td01">Password</td><td class="td02"><input style="width: 150px;" type="password" name="password" id="password"></td>
</tr>
<tr>
  <td align="right" class="td01">Password Confirm</td>
  <td class="td02"><input style="width: 150px;" type="password" name="password2" id="password2"></td>
</tr>
<!--
<tr>
  <td align="right" class="td01">Remember Me</td><td class="td02"><input type="checkbox" value="remember" name="remember" id="remember"></td>
</tr>-->
<tr>
<td align="center" colspan="2" class="td05"><input type="submit" value="Register" name="loginButton" id="loginButton"></td>
</tr>
</table>
<input type="hidden" name="lang" value="<%= target %>">
<%= refererInputElement %>
</form>
</fieldset>
</body>
</html>